package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketCinema;

import cn.taoticket.fallback.TaoticketCinemaClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-item-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketCinemaClientFallBack.class)
public interface RestTaoticketCinemaClient {

@RequestMapping(value = "/getTaoticketCinemaById",method = RequestMethod.POST)
public TaoticketCinema getTaoticketCinemaById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketCinemaListByMap",method = RequestMethod.POST)
public List<TaoticketCinema>	getTaoticketCinemaListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketCinemaCountByMap",method = RequestMethod.POST)
public Integer getTaoticketCinemaCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketCinema",method = RequestMethod.POST)
public Integer qdtxAddTaoticketCinema(@RequestBody TaoticketCinema taoticketCinema)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketCinema",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketCinema(@RequestBody TaoticketCinema taoticketCinema)throws Exception;
}
